package com.example.hlsdemo.service;

import com.example.hlsdemo.entity.VideoInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface VideoService {


    String uploadAndConvertVideo(MultipartFile file) throws Exception;


    byte[] getPlaylist(String videoId, String playlistName) throws Exception;


    byte[] getVideoFile(String videoId, String filename) throws Exception;


    List<VideoInfo> getAllVideos();


    String uploadVideoAsync(MultipartFile file) throws Exception;


    VideoInfo getVideoInfo(String videoId);
}
